﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Com.CMS263.BLL;
using Com.CMS263.PO;
using Com.CMS263.Util;

namespace Com.CMS263.Web.manage.GuestManage
{
    public partial class study_list : System.Web.UI.Page
    {


        public IList<StudentStudy> prodlist = new List<StudentStudy>();
        StudentStudyBLL pbll = new StudentStudyBLL();
        
        public int page = 0;
        public int pagecount = 0;
        public int pagesize = 10;
        public int stuid = 0;
        public int stupage = 0;
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                page = Convert.ToInt32(Request["page"]);
                if (page == 0)
                {
                    page = 1;
                }
                stuid = Convert.ToInt32(Request["stuid"]);
                stupage = Convert.ToInt32(Request["stupage"]);
                prodlist = pbll.GetListByPager(page, pagesize, stuid);
            }
        }
        

        
        public string GetPager()
        {
            pagecount = pbll.GetListByPager(stuid);
            return EnPager.GetPager(pagecount, pagesize, page, "");
        }
        
    }
}
